package com.heima.wemedia.controller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.utils.thread.WeMediaThreadLocalUtil;
import com.heima.wemedia.service.WmNewsAutoScanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 陈辉
 * @data 2023 11:22
 */
@RestController
@RequestMapping("ping")
public class PingController {

    @GetMapping("/test")
    public ResponseResult test(){
        System.out.println("method1开始执行了....");

        System.out.println("method1:"+Thread.currentThread().getId());

        System.out.println("method1执行结束了....");
        return ResponseResult.okResult(null);
    }
}
